﻿<%@ Page Title="家乐福——冠军宝贝在我家" Language="C#" MasterPageFile="~/MasterBasePage.master" AutoEventWireup="true"
    CodeBehind="index1029.aspx.cs" Inherits="WebSite.index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="css/index1029.css" />
    <script type="text/javascript">
        function autoScroll(obj)
        {
            $(obj).find("ul").animate({
                marginTop: "-25px"
            }, 500, function ()
            {
                $(this).css({ marginTop: "0px" }).find("li:first").appendTo(this);
            })
        }
        
        function sharehuaxu(picurl)
        {
            openwindowshare("#快乐宝宝帮#大赛精彩不断，还有多重好礼可以拿！猛戳>>>http://cover.carrefour.com.cn ", "http://cover.carrefour.com.cn/Index1029.aspx", picurl);
        }

        function sharebeiyinmei()
        {
            var img = $(".bg_3 .panel ul li:last img");
            var imgurl = "";
            if (img.length != 0)
            {
                imgurl = img.attr("src");
            }
            openwindowshare("宝宝哭闹怎么办？八个月的宝宝每天需要喝多少奶？答案尽在家乐福#快乐宝宝帮#大赛官网：http://cover.carrefour.com.cn", "http://cover.carrefour.com.cn/Index1029.aspx", imgurl);
        }

        function reloadTrivia()
        {
            $.ajax(
            {
                url: "/Server/GetRandomTrivia.ashx",
                // data: { "targetuid": targetuid },
                cache: false,
                type: "POST",
                success: function (data, textStatus, jqXHR)
                {
                    // eval("data = " + data);
                    if (data.code == 1)
                    {
                        $(".huaxu_list").find(".huaxu").remove();
                        // alert("您的邀请已发送，您将与最先接受邀请的宝宝组成宝宝帮。如果3天内未成功组队，系统将随机为您组队。");
                        $(data.attach).each(function (idx, item)
                        {
                            var newobj = ""
                            newobj += '<div class="huaxu">'
                            newobj += '<div class="huaxu_photo_frame">'
                            newobj += '<a title="' + item.imagesmall + '" class="a_huaxu" href="' + item.imagebig + '">'
                            newobj += '<img class="photo_huaxu" src="' + item.imagebig + '" alt="' + item.imagesmall + '" width="200" height="200" border="0" /> '
                            newobj += '</a>'
                            newobj += '</div>'
                            newobj += '<div class="text">'
                            newobj += '<div class="fltlft ft_18 yahei orange t1">'
                            newobj += item.imagesmall + '</div>'
                            newobj += '<div class="fltrt yahei">'
                            newobj += '<a href="javascript:void(0);" onclick="sharehuaxu(\'' + item.imagebig + '\');">分享至微博</a></div>'
                            newobj += '<div class="clearfloat">'
                            newobj += '</div>'
                            newobj += '</div>'
                            newobj += '</div>'
                            $(".huaxu_list").prepend(newobj);
                        });
                        $(".a_huaxu").colorbox({ rel: "a_huaxu", transition: "fade", close: "关闭", previous: "上一张", next: "下一张", current: "&nbsp;&nbsp;&nbsp;{current}/{total}", overlayClose: true });
                    }
                    else
                    {
                        alert(data.message);
                    }
                },
                error: function ()
                {
                    alert("系统错误");
                }
            });
            setTimeout('reloadTrivia();', 15000);
        }

        $(document).ready(function ()
        {
            //reloadTrivia();
            $(".a_huaxu").colorbox({ rel: "a_huaxu", transition: "fade", close: "关闭", previous: "上一张", next: "下一张", current: "&nbsp;&nbsp;&nbsp;{current}/{total}", overlayClose: true });
            setInterval('autoScroll("#awardlist")', 3000);

            jQuery('#icon-carousel').jcarousel({
                scroll: 1,
                start: 1,
                wrap: 'circular',
                auto: 5
            });

            
        });
    </script>
    <style>    
        .pagination
        {
            padding:2 2 2 2;
	        list-style:none;
        	
        }

        .pagination li
        {
            float:left;
            margin:2 2 2 2;
            padding:5 5 5 5;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="panel_928_h">
    </div>
    <div class="panel_928_b">
        <div class="bg_1">
            <div class="huaxutitle">
            </div>
           <div class="huaxu_list">
                <% 
                    if (TriviaData != null)
                    {
                        foreach (var item in TriviaData)
                        {         
                %>
                <div class="huaxu">
                    <div class="huaxu_photo_frame">                       
                        <a title="<%=GetTitle(item) %>" class="<%= GetCssClass(item) %>" href="<%= GetImage(item) %>">
                            <img class="photo_huaxu" src="<%=item.ImageBig%>" alt="<%=item.ImageSmall%>" width="200" height="200" border="0" />                      
                        </a>
                    </div>
                    <div class="text">
                        <div class="fltlft ft_18 yahei orange">
                                <%=item.ImageSmall%></div>
                        <div class="fltrt yahei">
                            分享至微博</div>
                        <div class="clearfloat">
                        </div>
                    </div>
                </div>
                <%
                        }
                    }
                %>
                <div class="clearfloat">
                </div>
            </div>
            <div class="pager" style="text-align: center;">
                <%
                    System.Collections.Generic.Dictionary<string, string> pp = new System.Collections.Generic.Dictionary<string, string>();                    
                %>
                <%=Shanda.Utility.Common.PaginationHelper.DoPagination(PageIndex, PageSize, RowTotal, Request.ApplicationPath.TrimEnd('/') + "/index.aspx", pp, false)%>
                <div class="clearfloat">
                </div>
            </div>
        </div>
    </div>
    <div class="panel_928_f">
    </div>
    <div class="bg_container">
        <div class="bg_2">
            <div class="weibowidget">
                <iframe width="460" height="305" class="share_self" frameborder="0" scrolling="no"
                    src="http://widget.weibo.com/weiboshow/index.php?language=&width=460&height=305&fansRow=2&ptype=1&speed=0&skin=7&isTitle=1&noborder=1&isWeibo=1&isFans=0&uid=2026014915&verifier=039d33aa&dpc=1">
                </iframe>
            </div>
            <div class="awardlist">
                <div class="lucky">
                </div>
                <div class="text">
                    <p class="ft_14 yahei orange2">
                        在本站任何页面点击“分享微博”按钮进行分享，都有机会获取双重奖励！</p>
                    <p class="ft_14 yahei green2">
                        <kbd class="orange2 yahei">1. 每日幸运星：</kbd> 每个工作日将有三位参与活动的网友获得价值50元精美礼品</p>
                    <p class="ft_14 yahei green">
                        <kbd class="orange2 yahei">2. 忠实粉丝奖：</kbd>如果你连续3天分享微博还有机会获得价值100元精美礼品.</p>
                </div>
                <div class="list" id="awardlist" style="overflow: hidden; height: 200px;">
                    <ul>
                        <% foreach (var name in listWeiboAwardUserName)
                           { %>
                        <li><div class="orange2 ft_18"><%=name %></div></li>
                        <%} %>
                        
                    </ul>
                </div>
            </div>
            <div class="clearfloat">
            </div>
        </div>
        <div class="bg_3">
            <div class="l">
                <div class="beiyinmei" >
                    <div class="sharepanel">
                        <a class="sharesina" href="javascript:void(0);" onclick="sharebeiyinmei();">贝因美分享</a>
                    </div>
                    <div class="panel" >
                        <div class="scroll_c">
                            <ul id="icon-carousel" class="jcarousel-skin-tango">
                                <% 
                                    if (RiseBabyData != null)
                                    {
                                        foreach (var item in RiseBabyData)
                                        {                                            
                                            %>
                                               <li>
                                                <div class="scroll_i">
                                                    <img src="<%=item.BabyImage %>" alt="<%=item.BabyName%>" width="554" height="320" />
                                                </div>
                                            </li>
                                            <%   
                                        }
                                    }
                                    %>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="intro">
                    <div class="text">
                        <p class="ft_24 red yahei">
                            <a href="/Intro.aspx">大赛赛程简介 10月1日-11月18日</a></p>
                        <p class="ft_14 orange2 yahei">
                            <kbd class="orange">阶段一：</kbd><kbd class="green2">晋级赛(10月1日0:00—10月28日24：00)</kbd></p>
                        <p>
                            晋级赛将通过线上与线下两种方式进行，共决出40组宝宝帮晋级决赛。晋级宝宝帮名单将于11月1日公布。11月1日-11日期间，主办方将收集晋级宝宝帮参赛资料，准备决赛事宜。</p>
                        <p>
                            &nbsp;</p>
                        <p class="ft_14 orange2 yahei">
                            <kbd class="orange">阶段二：</kbd><kbd class="green2">决赛(11月12日0:00—11月18日24：00)</kbd><img src="images/Index1029/intro_notstart.png" /></p>
                        <p>
                            40组晋级宝宝帮将根据决赛规则上传题为“我们是**小冠军”的视频和半命题式合照。比赛以网友投票及专家评委会打分相结合的方式进行选拔。 得分最高的1组宝宝帮将赢得2013家乐福冠军宝贝冠军称号!</p>
                        <p>
                            &nbsp;</p>
                        <p class="ft_14 orange2 yahei">
                            <kbd class="orange">阶段三：</kbd><kbd class="green2">公布结果（11月19日）</kbd></p>
                        <p>
                            最终评选结果将在活动官方网站公布。</p>
                    </div>
                </div>
            </div>
            <div class="r">
                <div class="judges">
                    <div class="judgelist">
                        <div class="judge">
                            <div class="p">
                                <img src="images/Index1029/judge1.png" alt="judge" />
                            </div>
                            <div class="text">
                                <p>
                                    &nbsp;</p>
                                <p class="ft_24 orange yahei">
                                    吴幼梅</p>
                                <p class="ft_14 orange yahei h12">
                                    家乐福 高层</p>
                                <p class="ft_12 green2 yahei h12">
                                    家乐福中国婴幼儿奶粉品类经理</p>
                            </div>
                            <div class="clearfloat">
                            </div>
                        </div>
                        <div class="judge">
                            <div class="p">
                                <img src="images/Index1029/judge2.png" alt="judge" />
                            </div>
                            <div class="text">
                                <p class="ft_24 orange yahei">
                                    高致娟</p>
                                <p class="ft_14 orange yahei h12">
                                    博士（台湾）</p>
                                <p class="ft_12 green2 yahei h12">
                                    美国U-Smart研究实验室执行总监 贝因美 冠军宝贝训练营总教练</p>
                            </div>
                            <div class="clearfloat">
                            </div>
                        </div>
                        <div class="judge">
                            <div class="p">
                                <img src="images/Index1029/judge3.png" alt="judge" />
                            </div>
                            <div class="text">
                                <p>
                                    &nbsp;</p>
                                <p class="ft_24 orange yahei">
                                    夏弘禹</p>
                                <p class="ft_14 orange yahei h12">
                                    NICK SHIAH</p>
                                <p class="ft_12 green2 yahei h12">
                                    金宝贝中国创办人 中国早教权威</p>
                            </div>
                            <div class="clearfloat">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clearfloat">
            </div>
        </div>
    </div>
</asp:Content>
